#pragma once

#include <stdexcept>

#include <d3d9.h>
#include <d3dx9.h>

#include <wrl.h>
namespace wrl = Microsoft::WRL;

class Coordinate
{
public:
	Coordinate(IDirect3DDevice9* Device, float width, float height);
	~Coordinate();

	Coordinate(const Coordinate&) = delete;
	Coordinate& operator=(const Coordinate&) = delete;

	void Update();
	void Draw(IDirect3DDevice9* Device);

private:
	wrl::ComPtr<IDirect3DVertexBuffer9> _VertexBuffer;
	float x, y, z;
};

